package top.soulblack.purchasesale.model;


import lombok.Data;

import java.math.BigInteger;
import java.util.List;

/**
 * @Author: 韦溜溜
 * @Description:用户实体类
 * @Date: Create in 14:21 2019/5/19
 */
@Data
public class User {

    private BigInteger userId;

    /**
     *账号
     */
    private String account ;

    /**
     *名称
     */
    private String userName;

    /**
     *密码，最大输入长度20
     */
    private String password;

    /**
     *手机号码
     */
    private String phone;

    /**
     *邮箱
     */
    private String email;

    /**
     *身份id
     */

    private Integer roleId;

    private Integer shopId;

    private String loadtime;

    private String ip;

    private String creatime;

    private String intitime;

    private Byte status;

    private Byte sort;

    private String shop;

    private String open_id;

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    public String getShop() {
        return shop;
    }

    public void setShop(String shop) {
        this.shop = shop;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getIntitime() {
        return intitime;
    }

    public void setIntitime(String intitime) {
        this.intitime = intitime;
    }

    public String getCreatime() {
        return creatime;
    }

    public void setCreatime(String creatime) {
        this.creatime = creatime;
    }

    public String getLoadtime() {
        return loadtime;
    }

    public void setLoadtime(String loadtime) {
        this.loadtime = loadtime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShop(Integer shopId) {
        this.shopId = shopId;
    }

    public Byte getSort() {
        return sort;
    }

    public void setSort(Byte sort) {
        this.sort = sort;
    }

    public BigInteger getUserId() { return userId; }

    public void setUserId(BigInteger userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    private List<Role> roles;

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
